From 251d6fdf9d6fb1648b877708c2873796beeceac4 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Wed, 7 Oct 2009 10:19:21 +0000 Subject: [PATCH] (Directory Names) : Document that root home directories are not replaced with "~". --- doc/lispref/files.texi | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/doc/lispref/files.texi b/doc/lispref/files.texi index 46ce7c4e6e2..8f47dfadd6c 100644 --- a/doc/lispref/files.texi +++ b/doc/lispref/files.texi @@ -1957,9 +1957,13 @@ function: @defun abbreviate-file-name filename @anchor{Definition of abbreviate-file-name} This function applies abbreviations from @code{directory-abbrev-alist} -to its argument, and substitutes @samp{~} for the user's home -directory. You can use it for directory names and for file names, -because it recognizes abbreviations even as part of the name. +to its argument, and also substitutes @samp{~} for the user's home +directory if the argument names a file in the home directory or one of +its subdirectories. (If the home directory is a root directory, it is +not replaced with @samp{~}, because this does not make the result +shorter on many systems.) You can use it for directory names and for +file names, because it recognizes abbreviations even as part of the +name. @end defun @node File Name Expansion -- 2.30.2